package com.project.study.farming.base.entity.po;

import com.project.study.farming.common.anno.Id;
import com.project.study.farming.common.anno.Table;
import com.project.study.farming.common.utils.CommonUtil;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 植物信息
 * @since 2020-05-05
 */
@Data
@Table("tm_message")
public class MessagePo {

    @Id
    private Long id;

    private String issuer;

    private String issueTime;

    private String message;

    private String reader;

    private Integer isDelete;

    private LocalDateTime createTime;

    private String createBy;

    private LocalDateTime updateTime;

    private String updateBy;

    public void setIssueTime(LocalDateTime issueTime){
        this.issueTime = CommonUtil.formatLocalDateTime(issueTime);
    }

    public void setIssueTime(String issueTime){
        this.issueTime = issueTime;
    }
}
